#include <iostream>

using namespace std;
inline int read()
{
	int ret = 0, flag = 1;
	char ch = getchar();

	while (ch < '0' || ch > '9')
	{
		if (ch == '-') flag = -1;
		ch = getchar();
	}

	while (ch >= '0' && ch <= '9')
	{
		ret = ret * 10 + ch - '0';
		ch = getchar();
	}
	return ret * flag;
}
inline void print(int x)
{
	if (x < 0)
	{
		putchar('-');
		x = -x;
	}
	if (x > 9) print(x / 10);
	putchar(x % 10 + '0');
}

int main()
{
	int n = read();
	int sum = 0;
	for (int i = 1; i <= n; i++)
	{
		int x = read();
		sum += x;
	}
	print(sum);
	return 0;
}